package com.ybwh.springboot2.clearing.controller;


import com.ybwh.springboot2.clearing.service.IAreaService;
import com.ybwh.springboot2.common.RespData;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 前端控制器  110102
 * </p>
 *
 * @author fanbeibei
 * @since 2020-04-10
 */
@RestController
@RequestMapping("/")
public class AreaController {

    private IAreaService areaService;

    @ResponseBody
    @RequestMapping("/query")
    public RespData<Object> query(@RequestParam("id") Long id) {
        return RespData.successResp(areaService.selectById(id));
    }


}
